<div class="col-xs-12">
    <button type="button" onclick="modal('{:url(\'addBank\')}', '添加银行', '80%', '80%')" class="btn btn-success">
        立即备份
    </button>
</div>
<div class="col-xs-12">
    <button type="button" onclick="modal('{:url(\'addBank\')}', '添加银行', '80%', '80%')" class="btn btn-success">
        优化表
    </button>
</div>
<div class="col-xs-12">
    <button type="button" onclick="modal('{:url(\'addBank\')}', '添加银行', '80%', '80%')" class="btn btn-success">
        修复表
    </button>
</div>
<div class="col-xs-12">
    <button type="button" onclick="modal('{:url(\'addBank\')}', '添加银行', '80%', '80%')" class="btn btn-success">
        下载
    </button>
</div>
<div class="col-xs-12">
    <button type="button" onclick="modal('{:url(\'addBank\')}', '添加银行', '80%', '80%')" class="btn btn-success">
        刷新
    </button>
</div>
<hr>

<table class="table table-striped table-bordered">
    <thead>
    <tr>
        <td>
            <input type="checkbox" id="select-all">
        </td>
        <td>表名</td>
        <td>数据量</td>
        <td>数据大小</td>
        <td>创建时间</td>
        <td>备份状态</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
    <tr>
        <td>{$item.id}</td>
        <td>
            {$item.bank_name}
        </td>
        <td>
            {if $item["status"] eq 1}
            <label class="label label-danger">显示</label>
            {else}
            <label class="label label-success">隐藏</label>
            {/if}
        </td>
        <td>{$item.display_order}</td>
        <td>
            {:date("Y-m-d H:i:s", $item.create_time)}
        </td>
        <td>
            {:date("Y-m-d H:i:s", $item.update_time)}
        </td>
        <td>
                <a href="javascript:;" onclick="modal('{:url(\'editBank\', [\'id\'=>$item.id])}', '编辑新闻', '80%', '80%')" class="btn btn-default">
                    编辑
                </a>
                <a href="javascript:;" data-toggle="confirm" data-title="确定删除此记录？" data-url="{:url('Shop/delBank', ['id'=>$item.id])}" class="btn btn-default">
                    删除
                </a>
        </td>
    </tr>
    {/volist}
    </tbody>
</table>

<div class="row">
    <div class="col-xs-12" style="text-align: right;">
        {$list->render()}
    </div>
</div>
